/* 科目维度知识点画像页面样式 */
.subject-profile-header {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.subject-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 科目概览卡片 */
.subject-overview-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.subject-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.subject-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subject-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 统计网格 */
.subject-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subject-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.subject-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.subject-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.subject-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.subject-stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 分布图表 */
.distribution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.distribution-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.distribution-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.distribution-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 分布项 */
.distribution-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.distribution-item:last-child {
    border-bottom: none;
}

.distribution-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.distribution-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.distribution-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.distribution-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.distribution-count {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    min-width: 40px;
    text-align: right;
}

.distribution-percentage {
    font-size: 0.875rem;
    color: #6c757d;
    min-width: 50px;
    text-align: right;
}

/* 知识点列表 */
.knowledge-list-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 知识点卡片 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.knowledge-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.knowledge-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.knowledge-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.mastery-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    color: white;
}

.knowledge-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.knowledge-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6c757d;
}

/* 分析报告 */
.analysis-report {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.insight-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.insight-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.insight-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* 颜色定义 */
.bg-excellent { background: linear-gradient(135deg, #28a745, #20c997); }
.bg-good { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.bg-average { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.bg-poor { background: linear-gradient(135deg, #dc3545, #e83e8c); }
.bg-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }

.text-excellent { color: #28a745; }
.text-good { color: #17a2b8; }
.text-average { color: #ffc107; }
.text-poor { color: #dc3545; }

.border-excellent { border-left-color: #28a745; }
.border-good { border-left-color: #17a2b8; }
.border-average { border-left-color: #ffc107; }
.border-poor { border-left-color: #dc3545; }
.border-info { border-left-color: #17a2b8; }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subject-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .distribution-cards {
        grid-template-columns: 1fr;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }

    .subject-overview-card {
        padding: 1.5rem;
    }

    .subject-title {
        font-size: 1.5rem;
    }
}

/* 排序和筛选控件 */
.controls-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #6c757d;
    margin-bottom: 2rem;
}